home *** CD-ROM | disk | FTP | other *** search
- /*
- * File: NetBIOS.H
- * Purpose: Contains definitions and declarations for
- * NetBIOS communications
- */
-
- #ifndef STANDARD
- #include "standard.h"
- #endif
-
- /**
- NetBIOS Command Block
- **/
- typedef struct NetbiosCmdBlk {
- BYTE command; /* command code */
- BYTE status; /* return status*/
- BYTE localSession; /* session # */
- BYTE nameNumber; /* name number */
- FPTR buffer; /* data buffer */
- WORD length; /* buffer size */
- char callName[16]; /* remote name */
- char name[16]; /* local name */
- BYTE receiveTimeOut; /* for NB_RECV */
- BYTE sendTimeOut; /* for NB_SEND */
- void (interrupt far *post)();
- BYTE lanAdapter; /* adapter # */
- BYTE commandDone; /* finish flag */
- BYTE reserved[4];
- } NCB;
-
-
- /**
- NetBIOS Command Codes
- **/
- #define NB_ADDNAME 0x30 /* add unique name */
- #define NB_DELNAME 0x31 /* delete name */
- #define NB_CALL 0x10 /* request session */
- #define NB_LISTEN 0x11 /* wait for call */
- #define NB_HANGUP 0x12 /* end session */
- #define NB_SEND 0x14 /* session send */
- #define NB_RECV 0x15 /* session receive */
-
-
-